home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-11 | 2.0 KB | 72 lines | [TEXT/MPS ] |
- // Copyright © 1995 Apple Computer. All rights reserved.
- // Release Version: $ ODF 1.0 d11 $
-
- #ifndef _TALKERFRAME_
- #define _TALKERFRAME_
-
- //=======================================================================
- // ----- Framework Includes -----
- #ifndef FWFRAME_H
- #include <FWFrame.h> // FW_CFrame
- #endif
-
- #ifndef FWTIME_H
- #include "FWTime.h" // FW_CTime
- #endif
-
- #ifndef FWRECT_H
- #include <FWRect.h> // FW_CRect
- #endif
-
- // ----- OS Layer -----
- #ifndef FWEVENT_H
- #include "FWEvent.h" // FW_CMouseEvent
- #endif
-
- //=======================================================================
- class FW_CLASS_ATTR CTalkerPart;
- class FW_CLASS_ATTR FW_CMenuEvent;
- class FW_CLASS_ATTR FW_CPictureShape;
- class FW_CLASS_ATTR DevUniv_STalker;
-
- //=======================================================================
- class FW_CLASS_ATTR CTalkerFrame : public FW_CFrame {
- public:
- CTalkerFrame(Environment* ev,
- ODFrame* odFrame,
- FW_CPresentation* presentation,
- CTalkerPart* talkerPart);
- virtual ~CTalkerFrame();
- protected:
- // overrides
- virtual void Draw(Environment *ev,
- ODFacet* odFacet,
- ODShape* invalidShape);
- virtual void FrameShapeChanged(Environment* ev);
- virtual FW_Boolean DoAdjustMenus(Environment* ev,
- FW_CMenuBar* menuBar,
- FW_Boolean hasMenuFocus,
- FW_Boolean isRoot);
- virtual FW_Boolean DoMenu(Environment* ev,
- const FW_CMenuEvent& theMenuEvent);
- virtual FW_Boolean DoMouseDown(Environment* ev,
- const FW_CMouseEvent& theMouseEvent);
- #ifdef FW_BUILD_MAC
- virtual ODDragResult CanAcceptDrop(Environment* ev, ODDragItemIterator* dragInfo);
- #endif
- // new members
- public:
- virtual void MySayText(Environment* ev);
- protected:
- virtual void MyInitTalker(Environment* ev);
- virtual void MyInitPicture(Environment* ev);
- private:
- CTalkerPart* fTalkerPart;
- FW_CRect fFrameRect;
- FW_CPictureShape* fPictShape; // Mr. Pizza
- DevUniv_STalker* fSOMTalker; // SOM object for speech synthesis
- };
-
- //=======================================================================
- #endif
-